//
//  ImageScrollViewController.h
//  BosidengIphone
//
//  Created by  on 12-1-10.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseViewController.h"

@interface ImageScrollViewController : BaseViewController<UIScrollViewDelegate> {
    UIScrollView *pagingScrollView;
    NSInteger currentPageIndex;
    NSMutableSet *recycledPages;
    NSMutableSet *visiblePages;
}

@property(nonatomic, retain)IBOutlet UIScrollView *pagingScrollView;
@property(nonatomic, assign)BOOL canHanlderPageSingleTap;
@property(nonatomic, assign)BOOL loadAtFirst;

- (void)loadPageViews;
- (void)tilePages;
- (BOOL)isDisplayingPageForIndex:(NSUInteger)index;
- (UIView *)dequeueRecycledPage;
- (NSInteger)imageCount;
- (UIView *)configureView:(UIView *)page atIndex:(NSInteger)index;
- (void)changePageIndex:(NSInteger)index;
- (void)selectPageIndex:(NSInteger)index;

@end
